package algorithm.sphericharmonics;

import algorithm.fft.Complex;

public class ComplexSphere {
	public float radius; 
	public float angle;
	public ComplexSphere(float r, float a){
		radius=r; 
		angle=a; 
	}
	public float re(){
		return radius*(float)Math.cos(angle); 
	}
	public float im(){
		return radius*(float)Math.sin(angle);
	}
	public Complex toComplex(){
		return new Complex(this.re(),this.im()); 
	}
	public String toString(){
		return radius+" X "+angle;
	}

}
